package com.xhai.service.impl;

import com.xhai.domain.entity.SysPerm;
import com.xhai.mapper.SysPermMapper;
import com.xhai.service.SysPermService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 权限表 服务实现类
 * </p>
 *
 * @author xhai
 * @since 2025-05-24
 */
@Service
public class SysPermServiceImpl extends ServiceImpl<SysPermMapper, SysPerm> implements SysPermService {

    @Resource
    private SysPermMapper sysPermMapper;

    @Override
    public List<SysPerm> selectPermByRoleIds(Set<Long> roleIds) {
        return sysPermMapper.selectPermByRoleIds(roleIds);
    }
}
